package niit.wei.dao;
import niit.wei.entity.Category;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

public interface CategoryDao {
    List<Category> getAllCategories(Connection conn, String sql, Class<Category> clazz,Object...args) throws SQLException, NoSuchFieldException, InstantiationException, IllegalAccessException;

    Category getCategory(Connection conn, String sql, Class<Category> clazz,Object...args) throws SQLException, NoSuchFieldException, InstantiationException, IllegalAccessException;
}
